<%= stylesheet_link_tag "layouts/site_nav" %>
<div class="site-nav">
<div class="site-nav-content clearfix">
  <div class="inline-block" style="float:left;text-align:left;">
    <img src="/assets/s-phone.png"/>15726307615&nbsp;&nbsp;&nbsp;&nbsp;

    <% if current_user.nil? %>
        <a href="/login" class="op-btn" id="siteNavLoginBtn"><%= t 'activerecord.attributes.layout.login' %></a>
        <a href="/shipper_register" class="op-btn" onclick="reg()"><%= t 'activerecord.attributes.layout.register' %></a>
    <% end %>
  </div>

  <div class="inline-block" style="float:right;text-align:right;margin-right:0px;">
    <% unless current_user.nil? %>欢迎
        <%= link_to "#{current_user.login}", user_path(current_user) %>
        &nbsp;
        &nbsp;
        &nbsp;
        <a href="/logout" class="op-btn"><%= t 'activerecord.attributes.layout.quit' %></a>
    <% end %>
    &nbsp;
    &nbsp;
    &nbsp;
    <% if current_user %>
      <a href="/webs/index" class="op-btn">主页</a>
    <% end %>
    &nbsp;
    &nbsp;
    <a href="/webs/help" class="op-btn"><%= t 'activerecord.attributes.layout.help' %></a>
  </div>
</div>
</div>